<?php

/**
 * 公共错误码
 * Created by PhpStorm.
 * User: lirui
 * Date: 2019/4/14
 * Time: 下午1:59
 */

namespace App\Common;

class ErrorCode
{
    const PARAMS_ERROR = 10000;//参数错误
    const SYSTEM_ERROR = 20000;//系统错误，保存数据出错等
    const SMSCODE_ERROR = 30000;//短信验证码错误
    const WEIQING_LOGIN_ERROR = 41009;//微擎未登录
    const LOGIC_ERROR = 50000;//业务逻辑判断错误 50000+
    const API_ERROR = 60000;//第三方API错误 60000+
    const DEVICE_ERROR = 70000;//设备异常

    public static $msgs = [
        self::PARAMS_ERROR => '参数错误',
        self::SYSTEM_ERROR => '系统错误',
        self::WEIQING_LOGIN_ERROR => '未获取到用户数据，请重新登录',
        self::SMSCODE_ERROR => '验证码错误',
        self::LOGIC_ERROR => '业务错误',
        self::API_ERROR => '接口请求错误',
        self::DEVICE_ERROR => '设备异常',
    ];
}